package com.fifth.apartment.service;


import com.fifth.apartment.entity.Orders;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

/**
 * TODO
 *
 * @author chemin
 * @since 2024/7/11
 *
 * redisTemplate.opsForValue()  String字符串类型，大部分场景都适用
 * redisTemplate.opsForHash()   Hash类型，存储对象
 * redisTemplate.opsForSet()    Set类型，存储无序且不重复
 * redisTemplate.opsForList()   List类型，堆栈操作、队列操作
 * redisTemplate.opsForZSet()   ZSet类型，排序
 *
 * redisTemplate.opsForGeo();          地理位置
 * redisTemplate.opsForHyperLogLog();  基数统计
 */


public interface OrderService {

    //Redis存储数据键规则




    Orders add();

     Orders find(int id) ;
}
